import { formatUTCTime } from '@/utils/formatUTCTime'
import { App } from 'vue'

export default function registerFormatTime(app: App) {
  app.config.globalProperties.$filters = {
    formatTime(value: string, format?: string) {
      return formatUTCTime(value)
    }
  }
}
